ScssPhp\ScssPhp\Compiler D

Total Complexity 1,460
Dependencies 15
Dependents 3
Total lines 7,786
Lines of code 4,495
Logical lines of code 3,001
Comment lines 1,428
Methods 247
Properties 125

Methods 247

Method Rating Maintainability Complexity Lines of code
compileChild()
D
2
126 379
reduce()
D
22
68 145
compileValue()
D
24
53 152
applyArguments()
D
25
51 149
matchExtends()
C
33 29 89
compileMediaQuery()
C
34 28 90
matchExtendsSingle()
C
34 28 84
sortNativeFunctionArgs()
C
33 27 94
coerceColor()
C
35 26 81
compile()
B
36 22 70
unifyCompoundSelectors()
B
41 17 59
findImport()
B
43 18 42
get()
B
44 17 43
compileMedia()
A
40 15 59
compileColorPartValue()
A
44 15 43
evaluateMediaQuery()
A
44 14 41
opColorColor()
A
45 14 41
mergeMediaTypes()
A
47 14 41
filterScopeWithWithout()
A
43 13 48
libHsl()
A
49 14 28
setExisting()
A
46 13 39
joinSelectors()
A
46 13 38
coerceList()
A
47 13 34
isSuperSelector()
A
46 12 41
multiplySelectors()
A
46 12 39
combineSelectorSingle()
A
47 12 36
evalSelectorPart()
A
55 13 16
isWith()
A
49 12 28
compileBlock()
A
46 11 38
flattenSelectors()
A
47 11 37
libJoin()
A
47 11 35
collapseSelectors()
A
45 10 44
alterColor()
A
50 11 27
libRgb()
A
47 10 37
compileImport()
A
49 10 31
selectorAppend()
A
50 10 30
callNativeFunction()
A
49 10 28
mergeDirectRelationships()
A
51 10 26
pushOrMergeExtentedSelector()
A
51 10 26
glueFunctionSelectors()
A
53 10 21
multiplyMedia()
A
48 9 34
opOr()
A
58 10 14
opAnd()
A
58 10 14
inspectFormatValue()
A
51 9 26
compileChildrenNoReturn()
A
53 9 22
callStackMessage()
A
53 9 20
libTypeOf()
A
55 9 20
compileAtRoot()
A
48 8 33
mergeParts()
A
51 8 29
normalizeValue()
A
52 8 25
matchPartInCompound()
A
53 8 24
coerceValue()
A
53 8 23
getNormalizedNumbers()
A
53 8 21
libIndex()
A
54 8 19
libStrSlice()
A
56 8 17
appendRootDirective()
S
51 7 26
libMix()
S
51 7 25
appendOutputLine()
S
52 7 25
libScaleColor()
S
53 7 24
libMin()
S
56 7 18
libMax()
S
56 7 18
compileNestedBlock()
S
49 6 30
libComparable()
S
60 7 12
completeScope()
S
61 7 11
extendOrReplaceSelectors()
S
53 6 23
compileWith()
S
53 6 23
toHSL()
S
52 6 23
throwError()
S
53 6 21
compileDirective()
S
55 6 19
flattenSelectorSingle()
S
56 6 18
hueToRGB()
S
57 6 17
hasSelectorPlaceholder()
S
60 6 13
findScopeSelectors()
S
61 6 13
shouldEval()
S
61 6 12
callScssFunction()
S
52 5 23
compileNestedPropertiesBlock()
S
54 5 20
compileCommentValue()
S
56 5 19
libZip()
S
56 5 19
opAdd()
S
58 5 17
fncall()
S
58 5 15
injectVariables()
S
58 5 15
testWithWithout()
S
68 6 6
extractRelationshipFromFragment()
S
58 5 15
isSuperPart()
S
60 5 13
coerceMap()
S
62 5 12
libInvert()
S
55 4 20
compileSelectorPart()
S
58 4 16
libMapMerge()
S
57 4 16
missingSelectors()
S
58 4 15
libRandom()
S
58 4 15
libSetNth()
S
58 4 15
filterWithWithout()
S
59 4 14
listSeparatorForJoin()
S
61 4 13
libListSeparator()
S
61 4 13
libMapGet()
S
59 4 13
handleImportLoop()
S
61 4 12
revertSelfSelector()
S
62 4 12
compileStringContent()
S
62 4 11
fixColor()
S
63 4 11
libSelectorExtend()
S
62 4 11
libSelectorReplace()
S
62 4 11
libSelectorNest()
S
56 3 18
backPropagateEnv()
S
67 4 7
toRGB()
S
57 3 15
mediaParent()
S
65 4 9
getSelectorArg()
S
59 3 15
libNth()
S
62 4 10
libCall()
S
59 3 13
libFunctionExists()
S
60 3 13
libScssphpGlob()
S
60 3 13
evalSelectors()
S
60 3 13
expToString()
S
61 3 13
checkCompatibleTags()
S
62 3 12
compileChildren()
S
62 3 12
libSelectorUnify()
S
61 3 12
libMapRemove()
S
61 3 11
set()
S
63 3 11
pushExtends()
S
62 3 11
extractInterpolation()
S
61 3 11
makeOutputBlock()
S
56 2 19
importFile()
S
56 2 18
libMapHasKey()
S
62 3 10
libUniqueId()
S
61 3 10
libQuote()
S
67 3 7
opNeq()
S
65 3 9
coercePercent()
S
65 3 9
isPseudoSelector()
S
66 3 8
opEq()
S
65 3 9
addParsedFile()
S
72 3 5
isImmediateRelationshipCombinator()
S
78 3 3
isSelfExtend()
S
67 3 8
opDivNumberNumber()
S
68 3 6
libIsBracketed()
S
66 3 8
findTagName()
S
67 3 8
libAlpha()
S
69 3 6
pushCallStack()
S
60 2 13
compileSelector()
S
63 2 12
pushEnv()
S
62 2 11
libSimpleSelectors()
S
62 2 11
libUnquote()
S
69 2 7
libOpacify()
S
67 2 7
opModNumberNumber()
S
69 2 6
libGrayscale()
S
67 2 7
libSaturate()
S
64 2 9
adjustHsl()
S
64 2 9
__construct()
S
67 2 8
libStrIndex()
S
65 2 8
libKeywords()
S
63 2 10
libAppend()
S
63 2 10
isTruthy()
S
79 2 3
libUnit()
S
68 2 7
libUnitless()
S
74 2 4
libToLowerCase()
S
69 2 6
libToUpperCase()
S
69 2 6
libFeatureExists()
S
67 2 7
libSelectorAppend()
S
64 2 9
prependSelectors()
S
67 2 8
parserFactory()
S
63 2 10
libOpacity()
S
68 2 7
libTransparentize()
S
67 2 7
coerceString()
S
70 2 6
coerceForExpression()
S
72 2 6
getStoreEnv()
S
79 2 3
toBool()
S
80 2 3
addImportPath()
S
72 2 5
setRaw()
S
71 2 6
opCmpNumberNumber()
S
73 2 4
libIf()
S
68 2 7
compactEnv()
S
71 2 6
libIeHexStr()
S
69 2 5
extractEnv()
S
69 2 7
assertList()
S
70 2 6
compileRGBAValue()
S
70 2 6
assertNumber()
S
70 2 6
assertColor()
S
70 2 6
assertMap()
S
68 2 7
compileKeyframeBlock()
S
59 1 14
getCompileOptions()
S
61 1 12
libVariableExists()
S
72 1 5
libMixinExists()
S
71 1 5
libGlobalVariableExists()
S
72 1 5
has()
S
78 1 3
popCallStack()
S
81 1 3
setVariables()
S
79 1 3
libStrLength()
S
71 1 5
libStrInsert()
S
64 1 9
libCounter()
S
73 1 4
libBlue()
S
75 1 4
unsetVariable()
S
80 1 3
libSelectorParse()
S
73 1 5
setSourceMap()
S
81 1 3
setSourceMapOptions()
S
81 1 3
registerFunction()
S
78 1 3
setErrorOuput()
S
81 1 3
unregisterFunction()
S
79 1 3
addFeature()
S
80 1 3
setNumberPrecision()
S
80 1 3
setEncoding()
S
81 1 3
setIgnoreErrors()
S
77 1 4
getVariables()
S
82 1 3
setImportPaths()
S
80 1 3
compileRoot()
S
70 1 6
compileComment()
S
72 1 5
getParsedFiles()
S
82 1 3
libIsSuperselector()
S
70 1 6
formatOutputSelector()
S
76 1 4
evalSelector()
S
78 1 3
libInspect()
S
75 1 4
getBuiltinFunction()
S
64 1 10
normalizeName()
S
79 1 3
opLteNumberNumber()
S
78 1 3
libDarken()
S
70 1 5
libFadeIn()
S
80 1 3
opLtNumberNumber()
S
78 1 3
opGteNumberNumber()
S
78 1 3
libComplement()
S
78 1 3
libDesaturate()
S
71 1 5
libRed()
S
75 1 4
libLighten()
S
70 1 5
libFadeOut()
S
80 1 3
libAdjustHue()
S
71 1 5
libGreen()
S
75 1 4
libLightness()
S
70 1 5
libSaturation()
S
70 1 5
libHue()
S
70 1 5
libHsla()
S
79 1 3
opGtNumberNumber()
S
79 1 3
setLineNumberStyle()
S
81 1 3
libChangeColor()
S
74 1 5
opAddNumberNumber()
S
77 1 3
opColorNumber()
S
67 1 8
popEnv()
S
77 1 4
opMulNumberNumber()
S
77 1 3
libMapValues()
S
72 1 5
libMapKeys()
S
72 1 5
opSubNumberNumber()
S
77 1 3
flattenList()
S
80 1 3
libLength()
S
74 1 4
libAdjustColor()
S
73 1 5
opNumberColor()
S
67 1 8
libRgba()
S
79 1 3
libAbs()
S
74 1 4
libCeil()
S
74 1 4
libFloor()
S
74 1 4
libRound()
S
74 1 4
libPercentage()
S
77 1 3
setFormatter()
S
81 1 3